﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataProcess
{
    public class ParagraphList : List<Paragraph>
    {
        Paragraph owner;
        new public void Add(Paragraph p)
        {
            base.Add(p);
            p.Parent = owner;
            p.AddToArticle();
        }

        new public void Insert(int index,Paragraph p){
            base.Insert(index, p);
            p.Parent = owner;
            p.AddToArticle();
        }

        public ParagraphList(Paragraph p)
        {
            owner = p;
        }
    }
}
